package com.ld.security.common.mybatis.constant;

import com.ld.security.common.mybatis.base.constant.SuperConstant;

/**
 * 字段类型
 */
public enum FieldTypeConstant implements SuperConstant.SuperEnum {


    anon("自动推断","String"),
    //原始类型
    string("字符串","String"),
    date("日期类型","Date"),
    number("数字类型","Integer"),
    boo("布尔类型","Boolean"),


    //计算类型
    compute("计算字段","String"),

    ;
    private final String labal;

    private final String javaType;

    FieldTypeConstant(String labal, String javaType) {
        this.labal = labal;
        this.javaType = javaType;
    }

    public String getJavaType() {
        return javaType;
    }

    public String getLabal() {
        return labal;
    }

    @Override
    public String getLabel() {
        return labal;
    }

    @Override
    public String getValue() {
        return this.name();
    }
}
